package com.soft.sitegenerator.form;


import java.util.Set;

import org.apache.struts.action.ActionForm;

import com.soft.sitegenerator.Component;
import com.soft.sitegenerator.DataBaseComponent;
import com.soft.sitegenerator.business.hibernate.Role;

public class RoleEditForm extends ActionForm {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
    private Component component=new DataBaseComponent();
    private Role role = (Role) component.getBean("rolesHib");
	
	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public boolean equals(Object arg0) {
		return role.equals(arg0);
	}

	
	public Long getId() {
		return role.getId();
	}

	public void setId(Long id) {
		role.setId(id);
	}

	public String getName() {
		return role.getName();
	}

	public void setName(String name) {
		role.setName(name);
	}

	public Set getProfiles() {
		return role.getProfiles();
	}

	public void setProfiles(Set profiles) {
		role.setProfiles(profiles);
	}
	
}